[VERSN2]
combobox "Install" "Uninstall" "Select"

"Install"
stop_errors false
speedreflect auto
unlock_memory all

if collection_exists FRONTEND\FRONTB1.LZC TPKBlocks DEFAULT
do
update_collection FRONTEND\FRONTB1.LZC TPKBlocks DEFAULT CollectionName FRONTENDTEXTURES
else
// do nothing
end

import override GLOBAL\GLOBALB.LZC CarTypeInfos Parts\COPCTACH_CTI.bin
import override GLOBAL\GLOBALB.LZC Collisions Parts\COPCTACH_C.bin
import override GLOBAL\GLOBALB.LZC DBModelParts Parts\COPCTACH_DB.bin
import override GLOBAL\GLOBALB.LZC CarTypeInfos Parts\COPCTACHGHOST_CTI.bin
import override GLOBAL\GLOBALB.LZC Collisions Parts\COPCTACHGHOST_C.bin
import override GLOBAL\GLOBALB.LZC DBModelParts Parts\COPCTACHGHOST_DB.bin

add_or_update_string LANGUAGES\ENGLISH_GLOBAL.BIN STRBlocks Global AUTO CARNAME_POLICE_COPCTACH "Police Lamborghini Countach Pursuit Unit"
add_or_update_string LANGUAGES\ENGLISH_GLOBAL.BIN STRBlocks Global AUTO CARNAME_POLICE_COPCTACHGHOST "Police Lamborghini Countach Undercover Unit"

add_or_update_string LANGUAGES\LABELS_INGAME.BIN STRBlocks InGame AUTO HUD_COPDESTROYED_COPCTACH "HUD_COPDESTROYED_COPCTACH"
add_or_update_string LANGUAGES\LABELS_INGAME.BIN STRBlocks InGame AUTO HUD_COPDESTROYED_COPCTACHGHOST "HUD_COPDESTROYED_COPCTACHGHOST"
add_or_update_string LANGUAGES\ENGLISH_INGAME.BIN STRBlocks InGame AUTO HUD_COPDESTROYED_COPCTACH "LAMBORGHINI COUNTACH (PPV)^COMBO BOUNTY: %$d"
add_or_update_string LANGUAGES\ENGLISH_INGAME.BIN STRBlocks InGame AUTO HUD_COPDESTROYED_COPCTACHGHOST "LAMBORGHINI COUNTACH (UCV)^COMBO BOUNTY: %$d"

add_texture FRONTEND\FRONTB1.LZC TPKBlocks FRONTENDTEXTURES SECONDARY_LOGO_COPCTACH Textures\SECONDARY_LOGO_COPCTACH.dds
add_texture FRONTEND\FRONTB1.LZC TPKBlocks FRONTENDTEXTURES SECONDARY_LOGO_COPCTACHGHOST Textures\SECONDARY_LOGO_COPCTACHGHOST.dds

if directory_exists absolute CARS\COPCTACH
do // do nothing
else
create_folder absolute CARS\COPCTACH
end 

if directory_exists absolute CARS\COPCTACHGHOST
do // do nothing
else
create_folder absolute CARS\COPCTACHGHOST
end

move_file override relative absolute Model\COPCTACH\GEOMETRY.BIN CARS\COPCTACH\GEOMETRY.BIN
move_file override relative absolute Model\COPCTACH\TEXTURES.BIN CARS\COPCTACH\TEXTURES.BIN
move_file override relative absolute Model\COPCTACHGHOST\GEOMETRY.BIN CARS\COPCTACHGHOST\GEOMETRY.BIN
move_file override relative absolute Model\COPCTACHGHOST\TEXTURES.BIN CARS\COPCTACHGHOST\TEXTURES.BIN

"Uninstall"
stop_errors false
speedreflect auto
unlock_memory all

remove_string LANGUAGES\ENGLISH_GLOBAL.BIN STRBlocks Global CARNAME_POLICE_COPCTACH
remove_string LANGUAGES\ENGLISH_GLOBAL.BIN STRBlocks Global CARNAME_POLICE_COPCTACHGHOST

remove_string LANGUAGES\ENGLISH_INGAME.BIN STRBlocks InGame HUD_COPDESTROYED_COPCTACH
remove_string LANGUAGES\ENGLISH_INGAME.BIN STRBlocks InGame HUD_COPDESTROYED_COPCTACHGHOST

remove_texture FRONTEND\FRONTB1.LZC TPKBlocks FRONTENDTEXTURES SECONDARY_LOGO_COPCTACH
remove_texture FRONTEND\FRONTB1.LZC TPKBlocks FRONTENDTEXTURES SECONDARY_LOGO_COPCTACHGHOST	

remove_collection GLOBAL\GLOBALB.LZC CarTypeInfos COPCTACH
remove_collection GLOBAL\GLOBALB.LZC Collisions COPCTACH
remove_collection GLOBAL\GLOBALB.LZC DBModelParts COPCTACH
remove_collection GLOBAL\GLOBALB.LZC CarTypeInfos COPCTACHGHOST
remove_collection GLOBAL\GLOBALB.LZC Collisions COPCTACHGHOST
remove_collection GLOBAL\GLOBALB.LZC DBModelParts COPCTACHGHOST
erase_folder absolute CARS\COPCTACH
erase_folder absolute CARS\COPCTACHGHOST
end
